<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use \dmstr\bootstrap\Tabs;

/**
* @var yii\web\View $this
* @var yiike\credit\models\Credit $model
* @var yii\widgets\ActiveForm $form
*/

?>

<div class="credit-form">

    <?php $form = ActiveForm::begin([
    'id' => 'Credit',
    'layout' => 'horizontal',
    'enableClientValidation' => true,
    'errorSummaryCssClass' => 'error-summary alert alert-error'
    ]
    );
    ?>

    <div class="">
        <?php echo $form->errorSummary($model); ?>
        <p>
            

           <?= $form->field($model, 'user_id')->textInput() ?>

           <?= $form->field($model, 'value1')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'value2')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'value3')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'value1_encrypt')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'value2_encrypt')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'value3_encrypt')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'password')->passwordInput(['maxlength' => true]) ?>
        </p>

        <hr/>

        <div class="form-group">
            <div class="col-sm-6 col-lg-offset-3">
                <?= Html::submitButton('<span class="fa fa-check-square-o"></span> 保存', ['id' => 'save-' . $model->formName(), 'class' => 'btn btn-success']);?>
            </div>
        </div>
        <br />
        <?php ActiveForm::end(); ?>

    </div>

</div>

